﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mycoupon.aspx.cs" Inherits="MxWeiXinPF.Web.shop.mycoupon" %>
<%@ Import Namespace="MxWeiXinPF.Common" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>我的优惠券</title>
    <meta charset="UTF-8">
    <meta name="viewport" content=" initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <link  href="../admin/css/pagination.css" rel="stylesheet" type="text/css" />
    <link href="../admin/skin/default/style.css" rel="stylesheet" type="text/css" />
            <link href="/shop/templates/default/css/style.css" rel="stylesheet" />
    <link href="/shop/templates/default/css/templates.css" rel="stylesheet" />
</head>
<body bgcolor="#F2F2F2">
    <form id="form1" runat="server" class="demoform">
      <input type="hidden" id="hidwid" name="hidwid">
      <input type="hidden" id="openid" name="openid">

 <asp:Repeater ID="rptList" runat="server">
        <HeaderTemplate>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                <tr>
                    <th align="center">
                        名称：
                    </th >    
                    <th align="center">
                        面额：
                    </th >                 
                    <th align="center">
                        图片：
                    </th>                        
                    <th>
                        状态
                    </th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td align="center">
                    <%# Eval("couponname") %>
                </td>
                <td align="center">
                    <%# Eval("money") %>
                </td>
                <td align="center" style="border:1px solid #000; width:40px; height:30px;overflow:hidden" >
                    <img src="<%# 
                      GetImg(Eval("usestate").ToString(),Eval("couponstate").ToString(),Eval("timeend").ToString(),Eval("thumb").ToString(),Eval("usedthumb").ToString(),Eval("expiredthumb").ToString()) 
                    %>" style="max-width:40px;_width:expression(this.width > 40 ? '40px':this.width);" alt="" />
                </td>             
                <td align="center">
                    <%# GetState(Eval("usestate").ToString(),Eval("couponstate").ToString(),Eval("timeend").ToString()) %>
                </td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            <%--<%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"9\">暂无记录</td></tr>" : ""%>--%>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    
<div class="line20"></div>
<%--<div class="pagelist">
  <div class="l-btns">
    <span>显示</span><asp:TextBox ID="txtPageNum" runat="server" CssClass="pagenum" onkeydown="return checkNumber(event);" ontextchanged="txtPageNum_TextChanged" AutoPostBack="True"></asp:TextBox><span>条/页</span>
  </div>
  <div id="PageContent" runat="server" class="default"></div>
</div>--%>
<!--/内容底部-->
   <%-- <div class="qb_quick_tip qb_none" id="bubble"></div>--%>
    <script src="/shop/templates/default/js/zepto.min.js"></script>
    <!--_share_js-->
    <vt:template id="share_js" file="_share_js.html" charset="utf-8" />

    <div class="lay_footer qb_tac qb_fs_s mod_mb15">
        <div id="footer">
            <div class="positionFooter">
                <ul>
                    <li><a class="a1" href="<%=indexurl %>">首页</a></li>
                    <li><a class="a2" href="<%=categoryurl %>">药品分类</a></li>
                    <li><a class="a3" href="<%=carturl %>">购物车</a></li>
                    <li><a class="a4" href="<%=userinfourl %>">会员中心</a></li>
                </ul>
            </div>
        </div>
<%--        <div class="fn_copyright qb_bfc">
            <div class="mod_color_comment bfc_c">&copy;&nbsp; 易药宝</div>
        </div>--%>
    </div>
    </form>
</body>
</html>
